<?php
class Test_kvdb extends CI_Model
{
	private $kvdb = '';
	private $ret = '';

	public function __construct()
	{
		parent::__construct();
		$this->kvdb = new SaeKV();
		$this->ret = $this->kvdb->init();
	}		

	public function set($key, $value)
	{
		if ($this->ret == true)
		{
			$this->ret = $this->kvdb->set($key, $value);
		}
		else
		{
			show_error('KVDB初始化错误！');
		}
	}

	public function get()
	{
		if ($this->ret == true)
		{
			$this->ret = $this->kvdb->pkrget('', 100);
				var_dump($this->ret);
		}
		else
		{
			show_error('KVDB初始化错误！');
		}
	}

}
